<html xmlns:concordion="http://www.concordion.org/2007/concordion">
<body>

    <h1>Python integration with arrays</h1>

    <p>
       <code>pyConcordion</code> let you write concordion test cases in python even with arrays.
    </p>

    <div class="example">

        <h3>Example</h3>

		<p>This test prooves usage of concordion:execute, concordion:set and concordion:verifyRows works with PyConcordion.</p>
		<p>One constraint is that no method in the fixture returns None, so even the addUser method returns dsomething (i.e. :"ok")</p>
		
		We add those users :
		<table concordion:execute="addUser(#username)">
	        <tr><th concordion:set="#username">Username</th></tr>
	        <tr><td>john.lennon</td></tr>
	        <tr><td>ringo.starr</td></tr>
	        <tr><td>george.harrison</td></tr>
	        <tr><td>paul.mccartney</td></tr>
	    </table>
	
    	
	    <p>We search for users whose name contains "<b concordion:set="#searchString">arr</b>" and this returns:</p>

		<table concordion:verifyRows="#username : getUsersContaining(#searchString)">
		    <tr><th concordion:assertEquals="#username">Matching Usernames</th></tr>
		    <tr><td>ringo.starr</td></tr>
		    <tr><td>george.harrison</td></tr>
		</table>
	    

    </div>


</body>
</html>